package com.qx.grainmall.elasticsearch.service;

import com.qx.common.utils.PageUtils;
import com.qx.common.vo.SkuEsModel;
import com.qx.grainmall.elasticsearch.vo.Goods;
import com.qx.grainmall.elasticsearch.vo.QueryVo;
import com.qx.grainmall.elasticsearch.vo.SearchParam;
import com.qx.grainmall.elasticsearch.vo.SearchResult;

import java.io.IOException;
import java.util.List;

public interface EsService {
    PageUtils<Goods> toeslist(QueryVo vo, int page, int size) throws Exception;

    Boolean addBulk(List<SkuEsModel> list) throws IOException;

    SearchResult getSearchResult(SearchParam searchParam) throws IOException;
}
